﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using HR.Appointments.Service.ValueObjects;

namespace HR.Appointments.Service.Test
{
    [TestFixture]
    public class TestTimeDuration
    {
        [Test]
        public void GetTimeDuration()
        {
            TimeDuration duration = TimeDuration.Create(30);
            Assert.AreEqual(30, duration.DurationValue);

            duration = TimeDuration.Create(20);
            Assert.AreEqual(20, duration.DurationValue);

            duration = TimeDuration.Create(12);
            Assert.AreEqual(30, duration.Default);
        }
    }
}
